﻿using LightCAD.Runtime;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LightCAD.UI
{
    public static class AvaloniaExt
    {
        public static LcKeyModifiers ToRuntime(this Avalonia.Input.KeyModifiers modifier)
        {
            return (LcKeyModifiers)((int)modifier);
        }
        public static LcKey ToRuntime(this Avalonia.Input.Key key)
        {
            return (LcKey)((int)key);
        }
        public static LcInputModifiers ToRuntime(this Avalonia.Input.InputModifiers modifier)
        {
            return (LcInputModifiers)((int)modifier);
        }
    }
}
